package com.vhall.component.controller.ctrl.facade;

import com.vhall.component.entity.ctrl.vo.ConnectJudgeRspVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 并发控制组件 - Admin 端接口
 *
 * @author xuyongzheng
 * @since 2021/5/17 上午11:12
 **/
@FeignClient(value = "CtrlInnerFacade", path = "/v4/inner/ctrl")
public interface CtrlInnerFacade {

    /**
     * 并发限制判断
     *
     * @param accountId   用户id
     * @param roomId      房间id
     * @param ilId        房间id
     * @param channelId   渠道
     * @param thirdId     第三方id
     * @param nifyChannel nifyChannel
     * @return 返回值
     */
    @GetMapping("/connect-judge")
    ConnectJudgeRspVO connectJudge(@RequestParam("accountId") Integer accountId,
                                   @RequestParam("roomId") String roomId,
                                   @RequestParam("ilId") Integer ilId,
                                   @RequestParam("channelId") String channelId,
                                   @RequestParam("thirdId") String thirdId,
                                   @RequestParam("nifyChannel") String nifyChannel);
}
